// globals.d.ts
declare global {
  /** 菜单数据定义 */
  interface MenuItem {
    menuId: number;
    menuPath: string;
    menuName: string;
    submenus?: MenuItem[];
    menuType: string;
    parentId: number;
    menuIcon: string;
  }
  /** 主页打开的tab */
  interface TabItem {
    menuId: number;
    menuName: string;
    menuPath: string;
    component: any;
    params: any;
  }

  /** 定义 CheckedTab 的类型 */
  interface CheckedTab {
    tabName: string;
    compontentName: any;
    params: Record<string, any>;
  }

  /** 定义状态的类型 */
  interface homeState {
    homeTabs: TabItem[];
    checkedTab: CheckedTab;
    dicts: Record<string, any>;
  }
}

export {};
